package com.ch.home.mapper.userMessageMapper;

import com.ch.home.bean.Feedback;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.LinkedList;

/**
 * Created by CHEN on 2019/8/24.
 */
public interface FeedbackMapper {

    /**
     * 添加反馈
     * @param feedback
     * @return
     */
    int addFeedback(Feedback feedback);



    /**
     * 查询一个时间段之间的所有符合条件的反馈
     * @param earlierTime
     * @param laterTime
     * @return
     */
    LinkedList<Feedback> getFeedback(@Param("userId") Integer userId,@Param("earlierTime")Date earlierTime,@Param("laterTime") Date laterTime);

}
